projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea392d
)
spi: atmel_spi: Use GENMASK
author
Jagan Teki
<
[email protected]
>
Thu, 22 Oct 2015 19:29:00 +0000
(
00:59
+0530)
committer
Jagan Teki
<
[email protected]
>
Tue, 27 Oct 2015 17:51:42 +0000
(23:21 +0530)
Replace numeric mask hexcodes with GENMASK macro
in atmel_spi
Cc: Bo Shen <
[email protected]
>
Reviewed-by: Tom Rini <
[email protected]
>
Signed-off-by: Jagan Teki <
[email protected]
>
drivers/spi/atmel_spi.h
patch
|
blob
|
history
diff --git
a/drivers/spi/atmel_spi.h
b/drivers/spi/atmel_spi.h
index 5b892d23b105162542e7125a3fe056b6632312c4..76b8556c98aeea16bdc0c5ddf26303b859c4b41a 100644
(file)
--- a/
drivers/spi/atmel_spi.h
+++ b/
drivers/spi/atmel_spi.h
@@
-59,7
+59,7
@@
#define ATMEL_SPI_CSRx_CSAAT BIT(3)
#define ATMEL_SPI_CSRx_BITS(x) ((x) << 4)
#define ATMEL_SPI_CSRx_SCBR(x) ((x) << 8)
-#define ATMEL_SPI_CSRx_SCBR_MAX
0xff
+#define ATMEL_SPI_CSRx_SCBR_MAX
GENMASK(7, 0)
#define ATMEL_SPI_CSRx_DLYBS(x) ((x) << 16)
#define ATMEL_SPI_CSRx_DLYBCT(x) ((x) << 24)